﻿
@{
    string module = ViewBag.Module as string;
    string extension = ViewBag.Extension as string;
    string url = "/" + module + "/" + extension;
}

<style>
    .panel-iframe {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        border-width: 0;
        overflow: auto;
    }
</style>

<div class="easyui-tabs" data-options="fit:true,border:false,tabPosition:'left',headerWidth:100">
    <div data-options="title:'功能演示',iconCls:'icon-hamburg-advertising',border:false" style="overflow:hidden;">
        <iframe id="demoIframe" class="panel-iframe" frameborder="0" width="100%" height="100%" marginwidth="0px" marginheight="0px" scrolling="auto"></iframe>
    </div>
    <div data-options="title:'查看源码',iconCls:'icon-standard-script-code',href:'@(url)Source'">
    </div>
    <div data-options="title:'扩展说明',iconCls:'icon-standard-bullet-key',href:'@(url)Explain'" style="padding:15px;font-size:14px;">
    </div>
</div>


<script>
    $(function () {

        $.util.delay(function () {
            $("#demoIframe").attr("src", "@(url)Demo");
        }, 1);

    });
</script>